package cn.tedu._05interceptor.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("v1/user/")
@Tag(name = "用户管理模块")
public class UserController {
    @GetMapping("reg")
    @Operation(summary = "01-用户注册")
    @ApiOperationSupport(order = 10)
    public String reg() {
        return "注册成功";
    }
    @GetMapping("login")
    @Operation(summary = "02-用户登录")
    @ApiOperationSupport(order = 20)
    public String login() {
        return "登录成功";
    }
    @GetMapping("changePwd")
    @Operation(summary = "03-修改密码")
    @ApiOperationSupport(order = 30)
    public String changePwd() {
        return "修改密码成功";
    }
    @GetMapping("logout")
    @Operation(summary = "04-用户退出")
    @ApiOperationSupport(order = 40)
    public String logout() {
        return "退出成功";
    }

}
